﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace Convertor
{
    class AllPluginConvertorTest : IValueConverter
    {
        #region IValueConverter 成员

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            LogModelView allPlugin = value as LogModelView;
            if (allPlugin != null)
            {
                return allPlugin.LogText;
            }
            else
            {
                return null;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            //Config.Log.LogText = value.ToString();
            //return Config.Log;
            return null;
        }

        #endregion
    }
}
